﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using AccountingModel.DTO;

namespace AccountingServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IAccountingServices
    {
        [OperationContract]
        DateTime GetServerTime();

        [OperationContract]
        int InsertTransaction(DTOTransaction transaction);
        [OperationContract]
        string RemoveTransaction(int Id);
        [OperationContract]
        string EditTransaction(DTOTransaction transaction);
        [OperationContract]
        DTOTransaction GetTransaction(int id);
        [OperationContract]
        List<DTOTransaction> GetTransactions(DateTime fromDate, DateTime toDate);

        [OperationContract]
        int AddAccount(string accountName);
        [OperationContract]
        string RemoveAccount(int Id);
        [OperationContract]
        string EditAccount(DTOAccount account);
        [OperationContract]
        List<DTOAccount> GetAccountList();
        [OperationContract]
        decimal GetBalance(IList<int> AccountId, DateTime atTime);
        [OperationContract]
        IList<DTOAccountActivity> GetAccountActivities(IList<int> AccountIds, DateTime fromDate, DateTime toDate);
        [OperationContract]
        IList<DTOAccountSummary> GetAccountSummaries(IList<int> AccountIds, IList<DateTime> points);
    }
}
